/* Import Matugen generated colors */
@import '../../colors.css';

/* === Derived dynamic colors === */
@define-color base alpha(@surface, 0.5);
@define-color surface_custom alpha(@surface_container_high,0.8);
@define-color hovercolor alpha(@surface_container_high,0.8);
@define-color activecolor @primary_container;

@define-color buttoncolor alpha(@inverse_primary,0.3);
@define-color hoverbutton alpha(@inverse_primary,0.5);
@define-color activebutton @inverse_primary;

@define-color bordercolor @primary;
@define-color fontcolor @on_surface;
@define-color text @on_surface;

/* === Global Reset === */
* {
  color: @text;
  font-size: 1rem;
  font-weight: 900;
  font-family: "Fira Sans Semibold", "Font Awesome 7 Free",
  "Font Awesome 7 Brands", "Font Awesome 6 Free", "Font Awesome 6 Brands",
  FontAwesome;
  transition: 200ms;
}

#window {
    padding:20px;

}

/* === Control Center Container === */
.control-center {
    background-color: @surface;
    border-radius: 12px;
    background: radial-gradient(circle at 50% 250%, @surface, @surface_dim) padding-box,
        linear-gradient(#FFFFFF,@on_primary) border-box;
    border: 1px solid transparent;	
    opacity:0.7;
    margin:10px;
    margin-right:18px;
    box-shadow: 0 1px 10px 1px rgba(0, 0, 0, 0.3), 0 1px 10px 1px rgba(0, 0, 0, 0.7),
      0 2px 10px 2px rgba(0, 0, 0, 0.3);}

/* === Buttons grid === */
.widget-buttons-grid {
  margin: 6px 6px 6px 6px;
  border-radius: 0px;
}

.widget-buttons-grid > flowbox > flowboxchild > button {
  margin: 7px 7px 7px 7px;
  padding: 1.3rem 4rem;
  background: @buttoncolor;
  color: @on_primary_fixed;
  border-radius: 8px;
  border: 2px solid @bordercolor;
  font-size: 15em;
}

.widget-buttons-grid > flowbox > flowboxchild > button:hover {
  background: @hoverbutton;
  color: @text;
}

.widget-buttons-grid > flowbox > flowboxchild > button.toggle:checked {
  background: @activebutton;
  color: @on_primary;
}

/* === Brightness === */
.widget-backlight,
.widget-volume {
  padding: 12px 16px;
  margin: 0px 12px 12px 12px;
  border-radius: 8px;
  background: @surface_custom;
}

.widget-backlight trough,
.widget-volume trough {
  background: @surface_container_low;
  margin: 8px 8px;
  border: 3px ;
}

.widget-backlight trough highlight,
.widget-volume trough highlight {
  background: @primary;
  border: 2px solid @primary;
  border-radius: 5px;
}

/* === Music Player === */
.widget-mpris {
  border-radius: 10px;
  margin: 2px 12px 12px 12px;
  align-items: center;
  color: alpha(#000000, 0.8);
}

.widget-mpris button {
  background: @surface_custom;
  border-radius: 20px;
  padding: 4px;
  margin: 20px 2px;
  color: alpha(#000000, 0.8);
}

.widget-mpris button:hover {
  background: @hovercolor;
}

.widget-mpris-player {
  border-radius: 10px;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  color: alpha(#000000, 0.8);
}

.widget-mpris-album-art {
  border-radius: 1000px;
  margin: 8px 0 0 8px;
}

.widget-mpris-title {
  font-weight: 900;
  font-size: 2em;
  margin: 10px 20px 0 0;
  color: alpha(white, 0.9);
  background-color: alpha(black, 0.6);
}

.widget-mpris-subtitle {

  font-weight: 900;
  font-size: 0.8rem;
  margin: 0px 20px 5px 0px;
  color: alpha(white, 0.9);
  background-color: alpha(black, 0.6);
}


/* === Notification Clear Button === */

.widget-title {
  font-size: 1.5rem;
  margin: 0 12px 5px 12px;
}

.widget-title button {
  background: @surface_container;
  border-radius: 8px;
  padding: 4px 16px;
}

.widget-title button:hover {
  background: @hovercolor;
}

/* === Do Not Disturb === */

.widget-dnd {
  margin: 5px 12px 0px 12px;
}

.widget-dnd > switch {
  color: @text;
  background: @buttoncolor;
  border-radius: 5px;
  box-shadow: none;
}

.widget-dnd > switch:hover {
  background: @hovercolor;
}

.widget-dnd > switch:checked {
  background: @buttoncolor;
  color: @on_primary;
}

.widget-dnd > switch slider {
  background: @secondary;
  border-radius: 5px;
  border: 2px solid @buttoncolor;
}

.widget-dnd > switch:checked slider {
  background: @inverse_primary;
}

/* === Notifications === */

.control-center .notification-row .notification-background .notification.critical {
  background-color: @surface_container;
  border-radius: 10px;
  margin: 5px 0px;
  padding: 10px;
  border: 2px solid red;
  min-height: 2.5em;
}

.control-center .notification-row .notification-background .close-button {
  background-color: @hoverbutton;
  border-radius: 5px;
  color: @text;
  padding: 5px;
}

.control-center .notification-row .notification-background .close-button:hover {
  background-color: @activecolor;
}

/* === Progress Bars === */

trough highlight {
  background: @primary;
  border: 2px solid @primary_fixed;
  border-radius: 20px;
}

/* === Notification Groups === */

.notification-group {
  margin: 4px 12px 4px 12px;
}
.notification-group-headers {
  font-weight: 900;
  font-size: 0
}

.notification-group-icon {
  padding: 0px;
}

.notification-group-collapse-button,
.notification-group-close-all-button {
  background: @surface_container;
  border-radius: 5px;
  padding: 5px;
}

.notification-group-collapse-button:hover,
.notification-group-close-all-button:hover {
  background: @hovercolor;
}

.notification {
    background-color: @surface;
    border-radius: 12px;
    background: radial-gradient(circle at 50% 250%, @primary, @surface) padding-box,
        linear-gradient(#FFFFFF,@on_primary) border-box;
    border: 1px solid transparent;	
    opacity:1.0;
    padding:10px;
    margin:10px 0px 0px 0px;
    box-shadow: 1 1 5 1px @shadow;
}